using Microsoft.EntityFrameworkCore;

namespace Codes.Models;

public class StudentInfoDbContext: DbContext {
public DbSet<Student> Students {get;set;}
public DbSet<Score> Scores{get;set;}
public DbSet<Course> Courses{get;set;}
    protected override void OnConfiguring(DbContextOptionsBuilder optionsBuilder)
    {
        base.OnConfiguring(optionsBuilder);
        var Conrstring="Server=192.168.31.208;database=StudentInfoDb;uid=sa;pwd=123456;TrustServerCertificate=True;";
        optionsBuilder.UseSqlServer(Conrstring);
    }

}